<template>
  <div class="home">
    <el-row>
        <view-top></view-top>
    </el-row>
    <el-container>
      <!-- 左侧目录 -->
      <el-aside width="200px">
        <el-menu router>
          <el-menu-item index="/novel">小说</el-menu-item>
          <el-menu-item index="/user">用户</el-menu-item>
        </el-menu>
      </el-aside>
      <!-- 右侧内容区域 -->
      <el-container>
        <el-main>
          <!-- 渲染子路由对应的组件 -->
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import ViewTop from './ViewTop.vue';
export default {
    components:{
        ViewTop
  },
  name: 'Home',
  data() {
    return {};
  },
  methods: {}
};
</script>

<style scoped>
.home {
  /* height: 100vh; */
}
</style>
